namespace AdminApiTemplate.Services.AdminUser
{
    /// <summary>
    /// 用户管理分页查询数据
    /// </summary>
    public class GetAdminUserPagedListSearchModel
    {
        /// <summary>
        /// 
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>        
        public int? IsDisabled { get; set; }

        /// <summary>
        /// 账号禁用时间
        /// </summary>
        public DateTime? DisableTime { get; set; }

        /// <summary>
        /// 账号创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 用户类型 0 管理员 1 BM 2 BD
        /// </summary>
        public int? UserType { get; set; }

        /// <summary>
        /// 中文名
        /// </summary>
        public string ChineseName { get; set; }
        /// <summary>
        /// 英文名
        /// </summary>
        public string EnglishName { get; set; }

        /// <summary>
        /// 发送邮件email
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 邮箱密码
        /// </summary>
        public string EmailPassword { get; set; }

        /// <summary>
        /// BM名称
        /// </summary>
        public string BMName { get; set; }
        /// <summary>
        /// 销售等级  0试用期、1普通销售、2Top销售（Level:Novice、General、Top）
        /// </summary>
        public int? Level { get; set; }

        /// <summary>
        /// 是否兼职
        /// </summary>
        public bool? IsPartTime { get; set; }
        /// <summary>
        ///BD分组
        /// </summary>
        public int? TeamId { get; set; }

        /// <summary>
        /// 是否推广专员
        /// </summary>
        public bool? IsMarketing { get; set; }

        /// <summary>
        /// 是否可以分配用户
        /// </summary>
        public bool? CanAssign { get; set; }

        /// <summary>
        /// 是否使用薪资系统
        /// </summary>
        public bool? IsCalcSalary { get; set; }

        /// <summary>
        /// 企业微信
        /// </summary>
        public string WorkWx { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; set; }
    }

    public class AdminUserRoleItem
    {
        public int? UserId { get; set; }

        public int? RoleId { get; set; }

        public string RoleName { get; set; }
    }
}
